<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pname" data-rule="required" class="form-control" name="row[pname]" type="text" value="{$row.pname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('项目经理')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-manager_name" class="form-control" name="row[manager_name]" type="text" value="{$row.manager_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-spend_progress" class="control-label col-xs-12 col-sm-2">{:__('项目进度')}:</label>
        <div class="col-xs-12 col-sm-4">
            <select id="spend_progress" class="form-control selectpicker" name="row[spend_progress]">
                {foreach name="spendProgress" item="spendProgressVal"}
                {if $row.spend_progress == $spendProgressVal}
                <option value="{$spendProgressVal}" selected="selected">{$spendProgressVal}%</option>
                {else /}
                <option value="{$spendProgressVal}">{$spendProgressVal}%</option>
                {/if}
                {/foreach}
            </select>
        </div>
    </div>
    <!--<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Industry_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-industry_id" data-rule="required" data-source="industry/index" class="form-control selectpage" name="row[industry_id]" type="text" value="{$row.industry_id|htmlentities}">
        </div>
    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Startdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-startdate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[startdate]" type="text" value="{$row.startdate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Enddate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enddate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[enddate]" type="text" value="{$row.enddate}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pcontent')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-pcontent" data-rule="required" class="form-control editor" rows="5" name="row[pcontent]" cols="50">{$row.pcontent|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_ids')}:</label>
        <div class="col-xs-12 col-sm-10">
            <!--<input id="c-category_ids" data-rule="required" data-source="category/selectpage" data-params='{"custom[type]":"project"}' data-multiple="true" class="form-control selectpage" name="row[category_ids]" type="text" value="{$row.category_ids|htmlentities}">-->

            <div id="toolbar" class="toolbar">
                <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                <a href="project/addposition/ids/{$row.id}" class="btn btn-info btn-dialog {:$auth->check('project/addposition')?'':'hide'}" title="{:__('添加职位')}" data-name="addposition"><i class="fa fa-plus"></i> {:__('添加职位')}</a>
            </div>

            <table id="table_categories" class="table table-striped table-bordered table-hover table-nowrap" data-search="false" data-common-search="false" data-show-toggle="false" data-show-columns="false" data-show-export="false" data-record-id="{$row.id}" width="100%">
            </table>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pstate')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="pstateList" item="vo"}
            <label for="row[pstate]-{$key}"><input id="row[pstate]-{$key}" name="row[pstate]" type="radio" value="{$key}" {in name="key" value="$row.pstate"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Computation')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-computation" data-rule="required" class="form-control" name="row[computation]" type="number" value="{$row.computation|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contactname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contactname" data-rule="required" class="form-control" name="row[contactname]" type="text" value="{$row.contactname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pmobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pmobile" data-rule="required" class="form-control" name="row[pmobile]" type="text" value="{$row.pmobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Usedate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-usedate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[usedate]" type="text" value="{$row.usedate}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
